﻿<Window x:Class="AdamDsk.TextInputDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:AdamDsk"
        mc:Ignorable="d"
        Background="Transparent"
        Height="255" Width="513" ResizeMode="NoResize" ShowInTaskbar="False" Topmost="True" WindowStartupLocation="CenterOwner" WindowStyle="None">
    <Window.Resources>
        <Style x:Key="CaptionStyle" TargetType="TextBlock">
            <Setter Property="Background" Value="DimGray"/>
            <Setter Property="Foreground" Value="Yellow"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontSize" Value="28"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Padding" Value="4,4,4,10"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style x:Key="ButtonContainerStyle" TargetType="StackPanel">
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
        </Style>
        <Style x:Key="ButtonStyle" TargetType="Button">
            <Setter Property="Background" Value="DimGray"/>
            <Setter Property="BorderBrush" Value="White" />
            <Setter Property="BorderThickness" Value="3" />
            <Setter Property="Foreground" Value="Yellow" />
            <Setter Property="FontSize" Value="18" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Margin" Value="2,4,2,4" />
            <Setter Property="Padding" Value="7" />
        </Style>
        <Style x:Key="WindowBorder" TargetType="Border">
            <Setter Property="Background" Value="DarkGray"/>
            <Setter Property="CornerRadius" Value="7" />
            <Setter Property="BorderBrush" Value="Black" />
            <Setter Property="BorderThickness" Value="5"></Setter>
        </Style>
        <Style x:Key="MessageStyle" TargetType="TextBlock" >
            <Setter Property="FontSize" Value="18"/>
        </Style>
        <Style x:Key="InputStyle" TargetType="TextBox" >
            <Setter Property="Margin" Value="50,10,10,10"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="FontSize" Value="18"></Setter>
        </Style>
        <Style x:Key="PanelStyle" TargetType="StackPanel" >
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
    </Window.Resources>
    <Border Style="{StaticResource WindowBorder}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Name="lblCaption" Style="{StaticResource CaptionStyle}" Grid.Row="0"/>
            <StackPanel Orientation="Vertical" Grid.Row="1" Style="{StaticResource PanelStyle}">
                <TextBlock Name="lblMessage" Style="{StaticResource MessageStyle}"/>
                <TextBox Name="txtInput" Style="{StaticResource InputStyle}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Style="{StaticResource ButtonContainerStyle}" Grid.Row="2">
                <Button Name="btnCancel" Style="{StaticResource ButtonStyle}" Content="Cancel" Click="btnCancel_Click"/>
                <Button Name="btnOK" Style="{StaticResource ButtonStyle}" Content="OK" Click="btnOK_Click"/>
            </StackPanel>
        </Grid>
    </Border>
</Window>
